package userModel

import (
	"git.oschina.net/zd04/beego-shop/utils"
	"github.com/astaxie/beego/orm"
)

type Position struct {
	PositionId    int64  `orm:"pk;column(position_id);"`
	PositionName  string `orm:"column(position_name);"`
	DepartmentId  int64  `orm:"column(department_id);"`
	PositionLevel int8   `orm:"column(position_level);"`
}

func (this *Position) TableName() string {
	return utils.TableName("position")
}

func init() {
	orm.RegisterModel(new(Position))
}
